package com.orphan.audit.service.impl;

import com.orphan.audit.po.Discount;
import com.orphan.audit.dao.DiscountMapper;
import com.orphan.audit.service.IDiscountService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yichen
 * @since 2021-07-14
 */
@Service
public class DiscountServiceImpl extends ServiceImpl<DiscountMapper, Discount> implements IDiscountService {

    @Autowired
    private DiscountMapper discountMapper;

    @Override
    public List<Discount> getAll() {
        List<Discount> discounts = discountMapper.getAll();
        return discounts;
    }
}
